using Cinemachine;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using Unity.VisualScripting;
using UnityEngine;

public class CamaraContorller : MonoBehaviour
{
    public static CamaraContorller instance;
    [SerializeField] private GameObject virtualCam;
    private InGameScence scence;

    private void Awake()
    {

        if (instance != null)
        {
            Destroy(instance);
        }
        else
        { 
            instance = this;
        }
    }

    public void SetCurrentScence(InGameScence scence)
    { 
        this.scence = scence;
        virtualCam.GetComponent<CinemachineConfiner>().m_BoundingShape2D = scence.GetComponent<PolygonCollider2D>();

    }


}
